home *** CD-ROM | disk | FTP | other *** search
/ Aminet 43 / Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso / Aminet / comm / tcp / Amster-source.lha / Amster_Install / Source / include / chatline.h < prev    next >
C/C++ Source or Header  |  2000-11-21  |  691b  |  39 lines

  1. /*
  2. ** Chatline (String.mui Subclass with History)
  3. ** Copyright (C) 2000 Gurer Ozen <madcat@linuxfan.com>
  4. **
  5. ** This code is free software; you can redistribute it and/or
  6. ** modify it under the terms of GNU General Public License.
  7. */
  8.  
  9. #include "mui.h"
  10.  
  11. #ifndef MADCAT_CHATLINE_H
  12. #define MADCAT_CHATLINE_H
  13.  
  14. MUI_DISPATCH_DECL(chatline_dispatch);
  15.  
  16. struct chatlinestr
  17. {
  18.     struct chatlinestr *next;
  19.     struct chatlinestr *prev;
  20.     int len;
  21.     char line[2];
  22. };
  23.  
  24. struct chatlinedata
  25. {
  26.     void *pool;
  27.     struct chatlinestr *lines;
  28.     struct chatlinestr *lastline;
  29.     struct chatlinestr *cur;
  30. };
  31.  
  32.  
  33. /* change following macros according to main program */
  34.  
  35. #define CHATLINE_ADD 0xf0f0
  36.  
  37.  
  38. #endif    /* MADCAT_CHATLINE_H */
  39.